import request from '@/utils/request'

// 查询公告列表
export function ClassList(query) {
  return request({
    url: 'cms/class/list',
    method: 'get',
    params: query
  })
}

// 新增公告
export function addClassList(data) {
  return request({
    url: 'cms/class',
    method: 'post',
    data: data
  })
}

// 修改公告
export function updateClassList(data) {
  return request({
    url: 'cms/class',
    method: 'put',
    data: data
  })
}

// 删除公告
export function delClassList(noticeId) {
  return request({
    url: 'cms/class/' + noticeId,
    method: 'delete'
  })
}
// code list

export function coodList(query) {
  return request({
    url: '/system/menu/page/title',
    method: 'get',
    params: query
  })
}
// 修改
export function delList(data) {
  return request({
    url: '/system/menu/page/edit',
    method: 'put',
    data: data
  })
}